import Vue from 'vue';
import App from './App.vue';
import router from './router';
import store from './store';

import Particles from 'vue-particles';
import Element from 'element-ui';
import 'element-ui/lib/theme-chalk/index.css';
import '@/theme/index.scss';
import { i18n } from '@/i18n/index.js';
import Util from '@/utils/Util'
import { get, post, remove, put, execute, resultMsg } from '@/utils/RequestUtil'
import {AuthStorage} from "@/utils/AuthStorage";
Vue.use(Particles);
Vue.use(Element, { i18n: (key, value) => i18n.t(key, value), size: 'mini' });

Vue.config.productionTip = false;
Vue.prototype.bus = new Vue();
Vue.prototype.$Util = Util
Vue.prototype.$get = get
Vue.prototype.$post = post
Vue.prototype.$put = put
Vue.prototype.$remove = remove
Vue.prototype.$execute = execute
Vue.prototype.$resultMsg = resultMsg
Vue.prototype.$AuthStorage = AuthStorage

new Vue({
	router,
	store,
	i18n,
	render: (h) => h(App),
}).$mount('#app');
